{%include file="index.header.tpl.php"%}
{%include file="index.left.tpl.php"%}
<!--主要内容开始-->
<div class="content-wrapper">
    <section class="content">
        <div class="row">
            <section class="col-lg-12 connectedSortable">
                <div class="box box-default box-solid">
                    <form name="myform" action="" method="post" role="form">
                        <div class="box-header with-border">
                            <span class="fa fa-pencil" style="float:left; font-size:18px; padding-top:3px; color:#3c8dbc;" ></span>
                            <p class="box-title">教学成果详情</p>
                        </div>
                        <div class="box-body">
                            <input type="hidden" name="achieve_type" value="{%$type%}">
                            <div class="form-group">
                                <label for="inputPassword3" class="col-md-2 control-label text-right">
                                    获奖名称：
                                </label>
                                <div class="input-group col-md-6 col-sm-12 col-xs-12">
                                    {%$data.achieve_name%}</div>
                            </div>
                            {%if $type eq 6 %}
                            <div class="form-group">
                                <label for="inputPassword3" class="col-md-2 control-label text-right">
                                    出版社：
                                </label>
                                <div class="input-group col-md-6 col-sm-12 col-xs-12">
                                    {%$data.achieve_publish%}</div>
                            </div>
                            <div class="form-group">
                                <label for="inputPassword3" class="col-md-2 control-label text-right">
                                    书号：
                                </label>
                                <div class="input-group col-md-6 col-sm-12 col-xs-12">
                                    {%$data.achieve_bookno%}</div>
                            </div>
                            <div class="form-group">
                                <label for="inputPassword3" class="col-md-2 control-label text-right">
                                    所在页：
                                </label>
                                <div class="input-group col-md-6 col-sm-12 col-xs-12">
                                    {%$data.achieve_page%}</div>
                            </div>
                            {%/if%}
                            {%if $type neq 6 %}
                            <div class="form-group">
                                <label for="inputPassword3" class="col-md-2 control-label text-right">
                                    主办单位：
                                </label>
                                <div class="input-group col-md-6 col-sm-12 col-xs-12">
                                    {%$data.achieve_unit%}</div>
                            </div>
                            {%if $type neq 7%}
                            <div class="form-group">
                                <label for="inputPassword3" class="col-md-2 control-label text-right">
                                    获奖名次：
                                </label>
                                <div class="input-group col-md-6 col-sm-12 col-xs-12">
                                    {%$data.achieve_rank%}
                                </div>
                            </div>
                            {%else%}
                            <div class="form-group">
                                <label for="inputPassword3" class="col-md-2 control-label text-right">
                                    第一指导老师：
                                </label>
                                <div class="input-group col-md-6 col-sm-12 col-xs-12">
                                    {%$data.achieve_teach%}</div>
                            </div>
                            <div class="form-group">
                                <label for="inputPassword3" class="col-md-2 control-label text-right">
                                    本人名次：
                                </label>
                                <div class="input-group col-md-6 col-sm-12 col-xs-12">
                                    {%$data.achieve_trank%}</div>
                            </div>
                            {%/if%}
                            {%/if%}
                            <div class="form-group">
                                <label for="inputPassword3" class="col-md-2 control-label text-right">
                                    获奖级别：
                                </label>
                                <div class="input-group col-md-6 col-sm-12 col-xs-12">
                                    {%$data.achieve_lv%}</div>
                            </div>

                            <div class="form-group">
                                <label for="inputPassword3" class="col-md-2 control-label text-right">
                                    {%if $type eq 6%}发表者{%else%}获奖人{%/if%}：
                                </label>
                                <div class="input-group col-md-6 col-sm-12 col-xs-12">
                                    {%$data.achieve_owner%}</div>
                            </div>

                            <div class="form-group">
                                <label for="inputPassword3" class="col-md-2 control-label text-right">
                                    {%if $type eq 6%}发表日期{%else%}获奖日期{%/if%}：
                                </label>
                                <div class="input-group col-md-6 col-sm-12 col-xs-12">
                                    {%$data.achieve_time%}
                                </div>
                            </div>
                            {%if $type eq 5 %}
                            <div class="form-group">
                                <label for="inputPassword3" class="col-md-2 control-label text-right">
                                    第一指导老师：
                                </label>
                                <div class="input-group col-md-6 col-sm-12 col-xs-12">
                                    {%$data.achieve_teach%}</div>
                            </div>
                            <div class="form-group">
                                <label for="inputPassword3" class="col-md-2 control-label text-right">
                                    其他指导老师：
                                </label>
                                <div class="input-group col-md-6 col-sm-12 col-xs-12">
                                    {%$data.achieve_teachers%}</div>
                            </div>
                            {%/if%}

                            <div class="form-group">
                                <label for="inputPassword3" class="col-md-2 control-label text-right">
                                    备注：
                                </label>
                                <div class="input-group col-md-6 col-sm-12 col-xs-12">
                                    {%$data.achieve_remark%}</div>
                            </div>
                            <div class="form-group">
                                <label for="inputPassword3" class="col-md-2 control-label text-right">
                                    附件：
                                </label>
                                <div class="input-group col-md-6 col-sm-12 col-xs-12">
                                    <a href="upload/achieve_file/{%$data.achieve_file%}" download="" style="color:#666">查看附件</a>
                                </div>
                            </div>

                        </div><!--box-body -->
                        
                    </form>
                </div><!--box box-default box-solid-->
            </section>

        </div><!--row-->
    </section>
</div>
<!--主要内容结束-->
{%include file="index.footer.tpl.php"%}
<script>
    $(function() {
        $( "#datepicker" ).datepicker({
            showOtherMonths: true,
            selectOtherMonths: true,
            changeMonth: true,
            changeYear: true,
            yearRange:"1930:2010"
        });
        $( "#datepicker1" ).datepicker({
            showOtherMonths: true,
            selectOtherMonths: true,
            changeMonth: true,
            changeYear: true
        });
        $( "#datepicker2" ).datepicker({
            showOtherMonths: true,
            selectOtherMonths: true,
            changeMonth: true,
            changeYear: true
        });
        $( "#datepicker3" ).datepicker({
            showOtherMonths: true,
            selectOtherMonths: true,
            changeMonth: true,
            changeYear: true
        });
    });
    //上传图片
    $(function(){
        var imgurl=[];
        function createfile(){
            $('#updiv').append("<input type='file'  name='photos' class='upfile'>");
        }
        function showimg(url){
            var img='<img src="'+url+'"/>';
            $('#imglist').append(img);
        }
        function addfile(){
            showimg($(this).val());
            $(this).hide();
            createfile();
            $('.upfile').bind('change',addfile);
        }
        $('.upfile').bind('change',addfile);
    })
</script>
